<?php /* Smarty version 2.6.18, created on 2009-05-06 14:40:10
         compiled from room/product_list.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', 'room/product_list.html', 77, false),array('modifier', 'default', 'room/product_list.html', 77, false),)), $this); ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->_tpl_vars['Charset']; ?>
">
<title>商务室 - <?php echo $this->_tpl_vars['sitetitle']; ?>
</title>
<link href="<?php echo $this->_tpl_vars['CSS_PATH']; ?>
css/style.css" rel="stylesheet" type="text/css">
<link href="<?php echo $this->_tpl_vars['INC_PATH']; ?>
css/room.css" rel="stylesheet" type="text/css">
<script language="javascript" src="<?php echo $this->_tpl_vars['INC_PATH']; ?>
js/general.js"></script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td height="83"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/element.top.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr align="center" valign="top">
    <td width="180" align="center" background="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/left_bg.gif"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "room/menu.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
    <td><table  border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/banr_pic.gif" width=570 height=101 alt=""></td>
      </tr>
    </table>
      <table width="95%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="45" background="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/title_bg.gif"><table height="30" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td>&nbsp;</td>
                <td class="font14b_org"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/icon_newd.gif" width="15" height="16"> 我的产品信息 </td>
              </tr>
          </table></td>
        </tr>
        <tr>
          <td height="5" valign="top" class="bggray2"></td>
        </tr>
      </table>
      <table width="95%" border="0" cellpadding="2" cellspacing="0">
        <tr>
          <td class="tdright">（提示：已经发布成供应信息的产品，请不要重复发布。如果您想提高发布效果，请进入<br>
“<a href="trade.php" class="orange">修改我的供求信息</a>”使用重发功能，使信息排名靠前）</td>
        </tr>
      </table>      
      <br>
      <table width="95%"  border="0" cellpadding="3" cellspacing="1" bgcolor="#DFDFDF">
        <tr>
          <td bgcolor="#FFFFFF">
		  <form name="typefrm" id="typefrm" method="get" action="">
		  <table width="100%" height="35" border="0" cellpadding="0" cellspacing="0" class="bggray">
            <tr>
              <td> 　按
                  <select name="product_type" onChange="sort(this.form);">
                    <option value="0">全部分类</option>
				  <?php $_from = $this->_tpl_vars['ProductTypes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['listprodtypes'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['listprodtypes']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['pt']):
        $this->_foreach['listprodtypes']['iteration']++;
?>
				  <option value="<?php echo $this->_tpl_vars['pt']['ID']; ?>
" <?php if ($this->_tpl_vars['pt']['ID'] == $_GET['sid']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['pt']['Name']; ?>
</option>
					<?php endforeach; endif; unset($_from); ?>
                  </select>
&nbsp;&nbsp;</td>
              <td align="right"><a href="productedit.php"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/post_product.gif" width="90" height="27" border="0"></a></td>
            </tr>
          </table>
		  </form><div id="msg" align="center"><?php echo $this->_tpl_vars['Msg']; ?>
</div></td>
        </tr>
      </table>
      <br>
      <table width="95%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><table width="100%" border="0" cellpadding="5" cellspacing="0">
		  <!-- product -->
		  <?php $_from = $this->_tpl_vars['ProductList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['prod_list'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['prod_list']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['pd']):
        $this->_foreach['prod_list']['iteration']++;
?>
            <tr align="center">
              <td align="center"><table width="100%" border="0" align="center" cellpadding="2" cellspacing="0" class="zi">
                <tr>
                  <td width="16%"><table border="0" cellpadding="2" cellspacing="1" class="bglist">
                      <tr>
                        <td bgcolor="#FFFFFF"><img src="<?php if ($this->_tpl_vars['pd']['ProductPicture'] != ''): ?><?php echo $this->_tpl_vars['attachment_dir']; ?>
<?php echo $this->_tpl_vars['pd']['ProductPicture']; ?>
<?php else: ?>../media/default/small.gif<?php endif; ?>" width=75 height=75></td>
                      </tr>
                  </table></td>
                  <td colspan="2" style='word-break: break-all'><?php echo ((is_array($_tmp=$this->_tpl_vars['pd']['Name'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 25) : smarty_modifier_truncate($_tmp, 25)); ?>
【<?php if ($this->_tpl_vars['pd']['ProductState'] == 1): ?><span class="fontgreen">已上架</span><?php else: ?><span class="fontred">已下架</span><?php endif; ?>】 【<?php echo $this->_tpl_vars['CheckStatus'][$this->_tpl_vars['pd']['ProductStatus']]; ?>
】(<?php echo ((is_array($_tmp=@$this->_tpl_vars['ProductSorts'][$this->_tpl_vars['pd']['ProductSortId']])) ? $this->_run_mod_handler('default', true, $_tmp, "普通商品") : smarty_modifier_default($_tmp, "普通商品")); ?>
)&nbsp;&nbsp; <a href="<?php echo $this->_tpl_vars['SiteUrl']; ?>
product/content.php?id=<?php echo $this->_tpl_vars['pd']['ID']; ?>
" target="_blank" title="点击预览"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/preview.gif" border="0" /></a> <?php if ($this->_tpl_vars['pd']['ProductPicture'] != ""): ?><a href="<?php echo $this->_tpl_vars['SiteUrl']; ?>
attachment.php?source=<?php echo $this->_tpl_vars['pd']['ProductPicture']; ?>
" target="_blank" title="点击查看大图"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/havepic.gif" border="0" /></a><?php endif; ?><br />
      型 号： <?php echo $this->_tpl_vars['pd']['SerialNumber']; ?>
 <br />
      描 述： <?php echo ((is_array($_tmp=$this->_tpl_vars['pd']['Description'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 100) : smarty_modifier_truncate($_tmp, 100)); ?>
</td>
                </tr>
                <tr align="right">
                  <td colspan="3" class="btn-input">
				  <?php if ($this->_tpl_vars['pd']['ProductState'] == 1): ?><a href="<?php echo $_SERVER['PHP_SELF']; ?>
?action=state&type=down&id=<?php echo $this->_tpl_vars['pd']['ID']; ?>
">从网上下架</a><?php else: ?><a href="<?php echo $_SERVER['PHP_SELF']; ?>
?action=state&type=up&id=<?php echo $this->_tpl_vars['pd']['ID']; ?>
">把商品上架</a><?php endif; ?>&nbsp;<a href="productedit.php?action=mod&id=<?php echo $this->_tpl_vars['pd']['ID']; ?>
">修改</a>&nbsp;<a href="tradeedit.php?action=pro2offer&proid=<?php echo $this->_tpl_vars['pd']['ID']; ?>
"><b>发布为供应信息</b></a>&nbsp;<a href="<?php echo $_SERVER['PHP_SELF']; ?>
?act=del&id=<?php echo $this->_tpl_vars['pd']['ID']; ?>
">删除</a>				  </td>
                  </tr>
                <tr>
                  <td height="1" colspan="3" background="image/index_trade_line.gif"></td>
                </tr>
              </table></td>
              </tr>
		  <?php endforeach; endif; unset($_from); ?>
		  <!-- :~product  -->
            <tr align="center">
              <td height="15" align="center"><table width="100%"  border="0" cellspacing="0" cellpadding="1">
                <tr>
                  <td height="1" background="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/index_trade_line.gif"></td>
                </tr>
              </table></td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td height="1" background="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/index_trade_line.gif"></td>
        </tr>
        <tr>
          <td align="center"><?php echo $this->_tpl_vars['ByPages']; ?>
</td>
        </tr>
      </table>
            <br>
      <table width="555" border="0" cellpadding="2" cellspacing="2" class="zi">
        <tr bgcolor="#FFE1B5">
          <td width="125"><div align="center">可发布的产品总数</div></td>
          <td width="91"><div align="center">已发布</div></td>
          <td width="73"><div align="center">等待审核</div></td>
          <td width="92"><div align="center">审核未通过</div></td>
          <td width="134"><div align="center">还可以发布的产品个数</div></td>
        </tr>
        <tr align="center" bgcolor="#EBEBEB">
          <td><?php echo $this->_tpl_vars['CountProduct']['max']; ?>
个</td>
          <td><?php echo ((is_array($_tmp=@$this->_tpl_vars['Amount'])) ? $this->_run_mod_handler('default', true, $_tmp, '0') : smarty_modifier_default($_tmp, '0')); ?>
个</td>
          <td><?php echo ((is_array($_tmp=@$this->_tpl_vars['CountProduct'][0])) ? $this->_run_mod_handler('default', true, $_tmp, '0') : smarty_modifier_default($_tmp, '0')); ?>
个</td>
          <td><?php echo ((is_array($_tmp=@$this->_tpl_vars['CountProduct'][2])) ? $this->_run_mod_handler('default', true, $_tmp, 0) : smarty_modifier_default($_tmp, 0)); ?>
个</td>
          <td><?php echo $this->_tpl_vars['Remain']; ?>
个</td>
        </tr>
      </table>
    <br></td>
  </tr>
</table>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "room/foot.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</body>
</center>
 </html>
